package com.china.juju.entity;


import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.hibernate.annotations.GenericGenerator;

@Entity
@Table(name="juju_email"
    ,catalog="zutuan_prot"
)
public class JujuEmail  implements java.io.Serializable {

    private static final long serialVersionUID = 1L;

    public static final String ENTITY_NAME = "com.china.juju.entity.JujuEmail";
	public static final String TABLE_NAME="juju_email";

    public static final String PK_Field = "id"; 
    public static final String PK_Method = "getId";  
	
	public static final String P_id = "id"; 
	public static final String P_email = "email"; 
	public static final String P_emailUrl = "emailUrl"; 

     private String id;
     private String email;
     private String emailUrl;

    public JujuEmail() {
    }
	
    public JujuEmail(String id) {
        this.id = id;
    }
    public JujuEmail(String id, String email, String emailUrl) {
        this.id = id;
        this.email = email;
        this.emailUrl = emailUrl;
    }
   
    @Id 
    @GeneratedValue( generator="paymentableGenerator")  
    @GenericGenerator(name="paymentableGenerator", strategy="uuid")  
    
    @Column(name="ID", unique=true, nullable=false, length=36)
    public String getId() {
        return this.id;
    }
    
    public void setId(String id) {
        this.id = id;
    }
    
    @Column(name="email", length=20)
    public String getEmail() {
        return this.email;
    }
    
    public void setEmail(String email) {
        this.email = email;
    }
    
    @Column(name="email_url", length=256)
    public String getEmailUrl() {
        return this.emailUrl;
    }
    
    public void setEmailUrl(String emailUrl) {
        this.emailUrl = emailUrl;
    }



    @Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
}


